package com.example.demo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Copyright@ 浙江浙大中控信息技术有限公司
 *
 * @ClassName MonitorPO
 * @Description TODO
 * @Author YANJUN.WAN
 * @Date 2021/6/4 13:21
 */
@Data
@Table(name = "MONITOR")
public class MonitorPO implements Serializable {
    private static final long serialVersionUID = 9028374343996563527L;

    @TableId(type = IdType.AUTO)//mybatis-plus主键注解
    //@IsAutoIncrement   //自增
    @IsKey             //actable主键注解
    @Column(comment = "记录ID")//对应数据库字段，不配置name会直接采用属性名作为字段名comment是注解
    private String id;  //记录id

    @Column (comment = "物联网设备名",name = "DEVICE_ID")
    private String deviceId;    //物联网设备名

    @Column (comment = "摄像头名称",name = "CAMERA_NAME")
    private String cameraName;  //  摄像头名称

    @Column (comment = "摄像头编码",name = "CAMERA_CODE")
    private String cameraCode;  //摄像头编码
}
